#include "DemuxTable.h"

void DemuxTable::convert( fd_set &read, fd_set &write, fd_set &excep)
{
  FD_ZERO(&read);
  FD_ZERO(&write);
  FD_ZERO(&excep);

  for ( int h = 0; h < FD_SETSIZE-1; h++)
    {
      if (table_[h].eventType & READ_EVENT)
	  FD_SET ( h, &read);
	
      if (table_[h].eventType & WRITE_EVENT)
	FD_SET( h, &write );

      if (table_[h].eventType & EXCEP_EVENT)
	FD_SET( h, &excep );
    }
}
